package model

import (
	"github.com/google/uuid"
	"github.com/lib/pq"
	"time"
)

type Deliver struct {
	UUID        uuid.UUID      `json:"uuid"`
	Enterid     pq.StringArray `gorm:"type:character varying[]"`
	Name        string         `json:"name"`
	Cid         string         `json:"cid"`
	Goodid      string         `json:"goodid"`
	Ladeid      string         `json:"ladeid"`
	Bussinessid string         `json:"bussinessid"`
	Ddate       time.Time      `json:"ddate"`
	Quantity    uint           `json:"quantity"`
	Quality     float64        `json:"quality"`
	Fee         float64        `json:"fee"`
}

type DeliverAPI struct {
	Name        string    `json:"name"`
	Cid         string    `json:"cid"`
	Goodid      string    `json:"goodid"`
	Ladeid      string    `json:"ladeid"`
	Bussinessid string    `json:"bussinessid"`
	Ddate       time.Time `json:"ddate"`
	Quantity    uint      `json:"quantity"`
	Quality     float64   `json:"quality"`
}

type EnterFee struct {
	enterID uuid.UUID
	Fee     float64 `json:"fee"`
}

type CompanyFee struct {
	Id  string  `json:"id"`
	Fee float64 `json:"fee"`
}
